<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>侧边栏</title>
</head>
<body>
    <div id="aside" th:fragment="aside">
    <aside class="lyear-layout-sidebar">
        <!-- logo -->
        <div id="logo" class="sidebar-header">
            <a href="../index.html"><img th:src="@{/layer/images/logo.png}" title="LightYear" alt="LightYear"/></a>
        </div>
        <div class="lyear-layout-sidebar-scroll">
            <nav class="sidebar-main">
                <ul class="nav nav-drawer">
                    <li class="nav-item">
                        <a th:href="@{/} ">
                            <i class="mdi mdi-home"></i>
                            后台首页
                        </a>
                    </li>

                    <li class="nav-item" th:if="${session.user.type!=0}">
                        <a th:href="@{/addAccountList}">
                            <i class="mdi mdi-file-plus"></i>
                            申请报销单
                        </a>
                    </li>
                    <li class="nav-item" th:if="${session.user.type!=0}">
                        <a th:href="@{/progress}">
                            <i class="mdi mdi-equal-box"></i>
                            查看进度
                        </a>
                    </li>
                    <li class="nav-item" th:if="${session.user.type==1}">
                        <a th:href="@{/approval}">
                            <i class="mdi mdi-equal-box"></i>
                            我的审批
                        </a>
                    </li>
                    <li class="nav-item" th:if="${session.user.type==0}">
                        <a th:href="@{/accountList}">
                            <i class="mdi mdi-equal-box"></i>
                            报销单
                        </a>
                    </li>
                    <li class="nav-item" th:if="${session.user.type==0}">
                        <a th:href="@{/department}">
                            <i class="mdi mdi-account-multiple"></i>
                            部门管理
                        </a>
                    </li>
                    <li class="nav-item" th:if="${session.user.type==0}">
                        <a th:href="@{/position}">
                            <i class="mdi mdi-library"></i>
                            职位管理
                        </a>
                    </li>
                    <li class="nav-item" th:if="${session.user.type==0}">
                        <a th:href="@{/employee}">
                            <i class="mdi mdi-linux"></i>
                            员工管理
                        </a>
                    </li>
                </ul>
            </nav>
        </div>
    </aside>
</div>
</body>
</html>
